<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo $title ?> | Powered by Myn Version <?php echo MYN_VER ?></title>
	<meta http-equiv="imagetoolbar" content="no" />
	<link rel="stylesheet" href="<?php echo admin_style(); ?>reset.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo admin_style(); ?>admin.css" type="text/css" />
	<link rel="stylesheet" href="<?php echo admin_thickbox(); ?>thickbox.css" type="text/css" />
	<script type="text/javascript">	
	// < ![CDATA[
		var url_base 		= '<?php echo base_url(); ?>';
		var admin_path		= url_base + '<?php echo ADMINPATH ?>';
		var admin_thickbox	= '<?php echo admin_thickbox(); ?>';
	//]] >
	</script>
    <script type="text/javascript" src="<?php echo admin_js(); ?>jquery.js"></script>
    <script type="text/javascript" src="<?php echo admin_js(); ?>admin.js"></script>
    <script type="text/javascript" src="<?php echo admin_thickbox(); ?>thickbox.js"></script>    
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="<?php echo admin_style(); ?>ie6.css" /><![endif]-->
	<!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo admin_style(); ?>ie7.css" /><![endif]--> 
	<script type="text/javascript">	
	// < ![CDATA[
	$(document).ready(function(){
		var lang_id = $.cookie('lang_id');
		
		if ( lang_id == undefined ) {		
			$.cookie( 'lang_id', null); 
			$.cookie( 'lang_id', 1, { expires: 30, path: '/'});;
		}			
	});		
	//]] >
	</script>
</head>

<body>

<div class="wcms-top">
	<h1><a href="<?php echo base_url(); ?>"><img src="<?php echo admin_img(); ?>space.gif" alt="Myn" width="85" height="44" /></a></h1>
    <div class="top-ucp">
    	Xin chào <span><?php echo get_username(); ?></span> |
        <a href="<?php echo admin_link('profile'); ?>">Thông tin cá nhân</a> |    
        <a href="<?php echo admin_link('login/logout'); ?>">Thoát</a>   
        <p>
        	Ip address : <?php echo $this->input->ip_address(); ?>
        </p>   
        <p>
        	Ngôn ngữ nhập liệu :
            <select id="lang" name="language" size="1" onchange="javascript:set_lang()">
            	<option <?php if ( get_admin_lang() == 1 ) echo 'selected="selected"'; ?> value="1">Tiếng Việt</option>
                <option <?php if ( get_admin_lang() == 2 ) echo 'selected="selected"'; ?> value="2">Tiếng Anh</option>
            </select>
        </p>
    </div>
</div>

<div class="clear-all"></div>

<div class="nav-bar">
	<ul>
		<li><a <?php if ( $do == 'index' ) echo 'class="selected" ' ?>href="<?php echo admin_link('admin'); ?>" title="Trang quản lý"><span>Trang quản lý</span></a></li>  
		<li><a <?php if ( $do == 'content' ) echo 'class="selected" ' ?>href="<?php echo admin_link('product/index'); ?>" title="Trang đơn"><span>Quản lý nội dung</span></a></li>        		
		<li><a <?php if ( $do == 'option' ) echo 'class="selected" ' ?>href="<?php echo admin_link('option'); ?>" title="Cấu hình"><span>Cấu hình</span></a></li>
	</ul>
</div>

<div class="nav-submenu">
<?php 
	if ( $do == 'content' ) {
		echo '<ul>';
			echo '<li><a href="'.admin_link('intro').'">Giới thiệu</a></li>';
			echo '<li><a href="'.admin_link('news/index/4/0/0').'">Quản lý download</a></li>';
			echo '<li><a href="'.admin_link('menu/index/3').'">Quản lý menu</a></li>';
			echo '<li><a href="'.admin_link('news/index/0/0/0').'">Quản lý tin</a></li>';
			echo '<li><a href="'.admin_link('news/index/1/0/0').'">Quản lý dịch vụ</a></li>';
			echo '<li><a href="'.admin_link('product/index').'">Quản lý sản phẩm</a></li>';
			echo '<li><a href="'.admin_link('gallery/index/0').'">Quản lý dịch ảnh</a></li>';
			echo '<li><a href="'.admin_link('advertise/index/3').'">Quản lý quảng cáo</a></li>';
		echo '</ul>';
	}	
	
	if ( $do == 'option' ) {
		echo '<ul>';
			echo '<li><a href="'.admin_link('option').'">Cấu hình website</a></li>';
			echo '<li><a href="'.admin_link('option/setting').'">Cấu hình chung</a></li>';
			echo '<li><a href="'.admin_link('option/cache').'">Xóa cache</a></li>';
		echo '</ul>';
	}
?>	
</div>

<div class="my-content">
	<?php 
	switch( $do ) {
		
		case 'content':
				$this->load->view ( ADMINPATH . 'admin_menu_content' ); 			
			break;
		
		case 'index':
							
			break;
		
		case 'option':
			
			break;
	}
	?>
    <div class="menu-main">
    
        <div class="path-home"><?php echo $title ?></div>